/*
 * All content copyright http://www.j2eefast.com, unless 
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.produce.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import com.j2eefast.produce.pms.entity.PmsParticipantEntity;
import com.j2eefast.produce.pms.entity.PmsProjectEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>参建单位</p>
 *
 * @author: summer
 * @date: 2021-05-29 16:47
 * @web: http://www.eoais.com/
 * @version: 1.0.1
 */
public interface PmsParticipantMapper extends BaseMapper<PmsParticipantEntity> {

	public boolean deleteByIds(@Param("ids") Long[] ids);
	public boolean updateCheck(@Param("id") Long id, @Param("userId") Long userId);
	//查询用户信息
	public SysUserEntity getSysById(@Param("userId") Long userId);

	/**
	 * 页面查询流程实例分页
	 * @return
	 */
	Page<PmsParticipantEntity> findPage(IPage<?> params,
                                         @Param("participantCode") String participantCode,
                                         @Param("participantName") String participantName,
										@Param("projectCode") String projectCode,
										@Param("region") String region,
										@Param("projectType") String projectType,
										@Param("projectName") String projectName,
										@Param("supervisorName") String supervisorName,
										@Param("supervisorIphone") String supervisorIphone,
										@Param("firstName") String firstName,
										@Param("firstIphone") String firstIphone,
										@Param("buildName") String buildName,
										@Param("buildIphone") String buildIphone,
										@Param("participantStatus") String participantStatus,
										@Param("participantCode2") String participantCode2,
										@Param("participantName2") String participantName2,
                                    @Param("sql_filter") String sql_filter);

	List<PmsParticipantEntity> findList(IPage<?> params,
										@Param("participantCode") String participantCode,
										@Param("participantName") String participantName,
										@Param("sql_filter") String sql_filter);


//	//获取工程最大编号
//	public PmsParticipantEntity getParticipant();
//	//获取参建最大编号
//	public PmsParticipantEntity getParticipantCode();

		//查询列表
	public PmsParticipantEntity selectParticipant();

	//保存三联信息
	boolean save(PmsParticipantEntity pmsParticipantEntity);

}
